<template>
  <div>
    <h1>插槽组件</h1>
    <slot :list="list"></slot>
  </div>
</template>

<script>
export default {
  data() {
    return {
      list: [
        {
          name: "小明",
          age: 18,
          gender: "男",
        },
        {
          name: "小红",
          age: 19,
          gender: "女",
        },
        {
          name: "韩梅",
          age: 20,
          gender: "女",
        },
        {
          name: "吉姆",
          age: 21,
          gender: "男",
        },
      ],
    };
  },
};
</script>

<style></style>
